package com.example.file_management.pojo.material;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@JsonSerialize(using = LocalDateTimeSerializer.class)
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
public class Project {
        @JsonProperty("project_id")
        private Long projectId; // 项目 ID
        private String projectName; // 项目名称
        private Long ownerId; // 负责人 ID

        private String ownerName; //负责人名称

        private LocalDateTime createdAt; // 创建日期
        private LocalDateTime dueDate; // 截至日期
        private String description; // 项目描述
        private List<Long> members; // 项目成员 ID 列表
        private List<Long> tasks; // 任务 ID 列表
}
